﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BFlatCompile.Nodes
{
	public class ListDefinition : Expression
	{
		public Expression[] Items { get; private set; }

		public ListDefinition(Expression[] items)
		{
			this.Items = items;
		}

		public override void ResolveCode(Class c, Dictionary<object, object> parents)
		{
			foreach (Expression item in this.Items)
			{
				item.ResolveCode(c, parents);
			}
		}

		public override void ResolveClassToThis(Class c)
		{
			foreach (Expression item in this.Items)
			{
				item.ResolveClassToThis(c);
			}
		}
	}
}
